#pragma once
#include "vn/Exception.h"

void ExceptionTest() {_test_func_;
	{
		Exception a;
		Exception b(String("hello"));
		Exception c("bonjour");

		 assert(b.m_msg == "hello");
		 assert(c.m_msg == "bonjour");
	}

	{
		const Exception a("long live");
		Exception b(a);
		assert(a.m_msg == "long live");
		b = b;
		assert(b.m_msg == "long live");
		b = a;
		assert(b.m_msg == "long live");
	}
}

